<extend name="Public/base"/>
<block name="style">
	<link href="__PLUGINS__/select2/select2.css" rel="stylesheet" />
	<link href="__PLUGINS__/jquery-datatables-bs3/css/datatables.css" rel="stylesheet" />
</block>
<block name="page-header">
	<li><a href="U('Device/index')"><i class="fa fa-copy"></i>{$meta_title}</a></li>
	<li class="active"><i class="fa fa-check"></i>车主OBD管理</li>
</block>
<block name="body">
<div class="row">
	<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
		<div class="panel panel-default bk-bg-white">
			<div class="panel-heading bk-bg-white">
				<h6><i class="fa fa-table red"></i><span class="break"></span>所有设备</h6>							
				<div class="panel-actions">
					<a href="#" class="btn-minimize"><i class="fa fa-caret-up"></i></a>
					<a href="#" class="btn-close"><i class="fa fa-times"></i></a>
				</div>
			</div>
			<div class="panel-body">
				<table class="table table-bordered table-striped mb-none datatable-tabletools">
					<thead>
					<tr>
						<th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
    					<th>编号</th>
    					<th>车主</th>
    					<th>车牌</th>
    					<th>OBD设备</th>
    					<th>起始时间</th>
    					<th>停用时间</th>
					</tr>
					</thead>
					<tbody>
					<foreach name="dev" item="obdid" key="id">
    				<tr class="gradeB">
    				<td><input class="ids" type="checkbox" name="ids[]" value="{$vo.id}" /></td>
    				<td>{$id+1}</td>
    				<td>{$obdid.drv_owner}</td>
    				<td>{$obdid.car_no}</td>
    				<td><a href="{$obdid.obdhref}" class="text-success">{$obdid.obdid}</a></td>
    				<td>{$obdid.starttime}</td>
    				<td>{$obdid.stoptime}</td>
    				</tr>
    				</foreach>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>
</block>
<block name="script">
	<script src="__PLUGINS__/select2/select2.js"></script>
	<script src="__PLUGINS__/jquery-datatables/media/js/jquery.dataTables.js"></script>
	<script src="__PLUGINS__/jquery-datatables/extras/TableTools/js/dataTables.tableTools.min.js"></script>
	<script src="__PLUGINS__/jquery-datatables-bs3/js/datatables.js"></script>
	<script src="__JS__/pages/table-advanced.js"></script>
</block>